package com.example.jurisdiction.Service.impl;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

import com.example.jurisdiction.Mapper.jurisdictionMapper;
import com.example.jurisdiction.Service.jurisdictionService;
import entity.jurisdiction;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class jurisdictionServiceimpl implements jurisdictionService {

	@Autowired
	private jurisdictionMapper jurisdictionMapper;

	@Override
	public int addjurisdiction(jurisdiction j) throws Exception {
		// TODO Auto-generated method stub
		return this.jurisdictionMapper.addjurisdiction(j);
	}

	@Override
	public int updatejurisdiction(jurisdiction j) throws Exception {
		// TODO Auto-generated method stub
		return this.jurisdictionMapper.updatejurisdiction(j);
	}

	@Override
	public int deljurisdiction(int id) throws Exception {
		// TODO Auto-generated method stub
		return this.jurisdictionMapper.deljurisdiction(id);
	}

	@Override
	public jurisdiction getjurisdiction(int id) throws Exception {
		// TODO Auto-generated method stub
		return this.jurisdictionMapper.getjurisdiction(id);
	}

	@Override
	public List<jurisdiction> select() throws Exception {
		// TODO Auto-generated method stub
		return this.jurisdictionMapper.select();
	}

}
